<?php
/**
 * User: xialei
 * Date: 2016/6/28 0028
 * Time: 12:09
 */
return [
    'wechat' => [
        'class' => 'app\components\Wechat',
        'ak' => YII_ENV_DEV ? 'wxc17aba9548aa98e6' : 'wx214ad0c5ed8e00bd',
        'sk' => YII_ENV_DEV ? '66840b625f3d4f57891fb932cc8a3f20' : 'b06b6515f35783f3eaf00b327e0a4bc6'
    ],
    'cache' => [
        'class' => 'yii\caching\FileCache',
    ],
    'mailer' => [
        'class' => 'yii\swiftmailer\Mailer',
        'useFileTransport' => true,
    ],
    'log' => [
        'traceLevel' => YII_DEBUG ? 3 : 0,
        'targets' => [
            [
                'class' => 'yii\log\DbTarget',
                'levels' => ['error', 'warning'],
            ],
        ],
    ],
    'db' => require(__DIR__ . '/db.php')
];